package day03;
//if...else
public class IfElseDemo {
    public static void main(String[] args) {
        //满500打八折，不满打九折
        double money =100;
        if (money>500){
            money *=0.8;
            System.out.println(money);
        }else {
            money *=0.9;
            System.out.println(money);
        }

        int score=59;
        if (score>=60 && score<=100){
            System.out.println("成绩合格");
        }else {
            System.out.println("成绩不合格");
        }



    }
}
